#pragma once

#include <windows.h>
#include "LGUIButton.h"


class LGUIDropDown : public LGUIButton
{
	const TCHAR **choices;
	int start;
	int numChoices;
	int value;
	HMENU menu;
	HWND hwnd;
public:
	LGUIDropDown(HWND _hwnd, const TCHAR **_choices, int _start, int _numChoices, int id, int _x, int _y, int _w, int _h, int _userdata);
	~LGUIDropDown();
	void draw(int xoff, int yoff);
	void penUp(int px, int py);
	void setValue(int _v) {value=(int)(unsigned char)(char)_v; redraw();}
	int getValue() { return value;}
};
